package com.rongke.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @Machine
 * @机器(machine)
 * @version : Ver 1.0
 */
@TableName("machine")
public class Machine implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:机器编码
	 * @字段:machine_code VARCHAR(11)
	 */
	private String machineCode;


	/**
	 * @备注:机器地址
	 * @字段:address VARCHAR(100)
	 */
	private String address;


	/**
	 * @备注:介绍人id
	 * @字段:introducer_id BIGINT(19)
	 */
	private Long introducerId;

	@TableField(exist = false)
	private Introducer introducer; //介绍人

	/**
	 * @备注:会员id
	 * @字段:muser_id BIGINT(19)
	 */
	private Long muserId;
    @TableField(exist = false)
	private  Muser muser;

	/**
	 * @备注:机器名称
	 * @字段:name VARCHAR(11)
	 */
	private String name;


	/**
	 * @备注:机器二维码
	 * @字段:machine_qr_code TEXT(65535)
	 */
	private String machineQrCode;


	public Machine(){
	}

	public Machine(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}


	public void setMachineCode(String machineCode) {
		this.machineCode = machineCode;
	}

	public String getMachineCode() {
		return this.machineCode;
	}


	public void setAddress(String address) {
		this.address = address;
	}

	public String getAddress() {
		return this.address;
	}


	public void setIntroducerId(Long introducerId) {
		this.introducerId = introducerId;
	}

	public Long getIntroducerId() {
		return this.introducerId;
	}


	public void setMuserId(Long muserId) {
		this.muserId = muserId;
	}

	public Long getMuserId() {
		return this.muserId;
	}

	public Introducer getIntroducer() {
		return introducer;
	}

	public void setIntroducer(Introducer introducer) {
		this.introducer = introducer;
	}

	public Muser getMuser() {
		return muser;
	}

	public void setMuser(Muser muser) {
		this.muser = muser;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return this.name;
	}


	public void setMachineQrCode(String machineQrCode) {
		this.machineQrCode = machineQrCode;
	}

	public String getMachineQrCode() {
		return this.machineQrCode;
	}
}
